Depth mapping using projected patterns

ABSTRACT

Apparatus for mapping an object includes an illumination assembly, which includes a single transparency containing a fixed pattern of spots. A light source transilluminates the single transparency with optical radiation so as to project the pattern onto the object. An image capture assembly captures an image of the pattern that is projected onto the object using the single transparency. A processor processes the image captured by the image capture assembly so as to reconstruct a three-dimensional (3D) map of the object.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application claims the benefit of U.S. Provisional Patent Application 60/909,487, filed Apr. 2, 2007, which is incorporated herein by reference.

FIELD OF THE INVENTION

The present invention relates generally to methods and systems for mapping of three-dimensional (3D) objects, and specifically to optical 3D mapping.

BACKGROUND OF THE INVENTION

Various methods are known in the art for optical 3D mapping, i.e., generating a 3D profile of the surface of an object by processing an optical image of the object.

Some methods are based on projecting a laser speckle pattern onto the object, and then analyzing an image of the pattern on the object. For example, PCT International Publication WO 2007/043036, whose disclosure is incorporated herein by reference, describes a system and method for object reconstruction, in which a coherent light source and a generator of a random speckle pattern projects onto the object a coherent random speckle pattern. An imaging unit detects the light response of the illuminated region and generates image data. Shifts of the pattern in the image of the object relative to a reference image of the pattern are used in real-time reconstruction of a 3D map of the object.

Other methods of optical 3D mapping project different sorts of patterns onto the object to be mapped. For example, PCT International Publication WO 93/03579 describes a three-dimensional vision system in which one or two projectors establish structured light comprising two sets of parallel stripes having different periodicities and angles. As another example, U.S. Pat. No. 6,751,344 describes a method for optically scanning a subject in which the subject is illuminated with a matrix of discrete two-dimensional image objects, such as a grid of dots. Other methods involve projection of a grating pattern, as described, for example, in U.S. Pat. No. 4,802,759. The disclosures of the above-mentioned patents and publications are incorporated herein by reference.

SUMMARY OF THE INVENTION

In embodiments of the present invention, a pattern of spots is projected onto an object, and an image of the pattern on the object is processed in order to reconstruct a 3D map of the object. The pattern on the object is created by projecting optical radiation through a transparency containing the pattern. The embodiments disclosed herein differ in this respect from methods of 3D reconstruction that use laser speckle, in which the pattern is created by optical interference using a diffuser. At the same time, the novel patterns that are used in these embodiments make it possible to perform 3D reconstruction quickly and accurately, using a single, stationary transparency to project the pattern, and a single, stationary image capture assembly to capture images of the object.

There is therefore provided, in accordance with an embodiment of the present invention, apparatus for mapping an object, including:

an illumination assembly, including:

-   -   a single transparency containing a fixed pattern of spots; and     -   a light source, which is configured to transilluminate the         single transparency with optical radiation so as to project the         pattern onto the object;

an image capture assembly, which is configured to capture an image of the pattern that is projected onto the object using the single transparency; and

a processor, which is coupled to process the image captured by the image capture assembly so as to reconstruct a three-dimensional (3D) map of the object.

In a disclosed embodiment, the pattern is uncorrelated over a range of depths that is mapped by the apparatus.

In some embodiments, the image capture assembly is arranged to capture images of the pattern on the object from a single, fixed location and angle relative to the illumination assembly. Typically, the transparency and light source are fixed in respective positions in the illumination assembly, and the processor is configured to reconstruct the 3D map using the images that are captured only from the single, fixed location and angle with the transparency and light source only in the respective positions.

In one embodiment, the light source includes a point source of the optical radiation. Alternatively, the light source may include a light-emitting diode (LED).

In a disclosed embodiment, the processor is arranged to process a succession of images captured while the object is moving so as to map a 3D movement of the object, wherein the object is a part of a human body, and the 3D movement includes a gesture made by the part of the human body, and wherein the processor is coupled to provide an input to a computer application responsively to the gesture.

There is also provided, in accordance with an embodiment of the present invention, apparatus for mapping an object, including:

an illumination assembly, including:

-   -   a transparency containing an uncorrelated pattern of spots; and     -   a light source, which is configured to transilluminate the         transparency with optical radiation so as to project the         uncorrelated pattern onto the object;

an image capture assembly, which is configured to capture an image of the uncorrelated pattern that is projected onto the object; and

a processor, which is coupled to process the image captured by the image capture assembly so as to reconstruct a three-dimensional (3D) map of the object.

In one embodiment, the uncorrelated pattern includes a pseudo-random pattern. In another embodiment, the uncorrelated pattern includes a quasi-periodic pattern, wherein the quasi-periodic pattern has an n-fold symmetry, with n=5 or n≧7.

Typically, the uncorrelated pattern has a duty cycle that is less than 1/e. Alternatively or additionally, the spots have a local duty cycle that varies across the pattern.

In an alternative embodiment, the transparency contains a plurality of parallel bands, repeating periodically in a first direction, each band containing a replica of the uncorrelated pattern extending across at least a part of the transparency in a second direction, perpendicular to the first direction.

In some embodiments, the processor is configured to derive the 3D map by finding respective offsets between the pattern of the spots on multiple areas of the object captured in the image of the pattern that is projected onto the object and a reference image of the pattern, wherein the respective offsets are indicative of respective distances between the areas and the image capture assembly. In one embodiment, the spots have a local duty cycle that varies monotonically along an axis across the pattern, and the processor is configured to determine local gray levels of the multiple areas in the image responsively to the local duty cycle, and to estimate the respective offsets based on the local gray levels.

There is additionally provided, in accordance with an embodiment of the present invention, a method for mapping an object, including:

transilluminating a single transparency containing a fixed pattern of spots so as to project the pattern onto the object;

capturing an image of the pattern that is projected onto the object using the single transparency; and

processing the captured image so as to reconstruct a three-dimensional (3D) map of the object.

There is further provided, in accordance with an embodiment of the present invention, a method for mapping an object, including:

an illumination assembly, including:

transilluminating a transparency containing an uncorrelated pattern of spots so as to project the uncorrelated pattern onto the object;

capturing an image of the uncorrelated pattern that is projected onto the object; and

processing the captured image so as to reconstruct a three-dimensional (3D) map of the object.

The present invention will be more fully understood from the following detailed description of the embodiments thereof, taken together with the drawings in which:

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a schematic, pictorial illustration of a system for 3D mapping, in accordance with an embodiment of the present invention;

FIG. 2 is a schematic top view of an imaging device for use in 3D mapping, in accordance with an embodiment of the present invention;

FIG. 3 is a schematic top view of an illumination assembly for use in 3D mapping, in accordance with an embodiment of the present invention; and

FIGS. 4-6 are schematic representations of patterns for use in 3D mapping, in accordance with embodiments of the present invention.

DETAILED DESCRIPTION OF EMBODIMENTS

FIG. 1 is a schematic, pictorial illustration of a system 20 for 3D optical mapping, in accordance with an embodiment of the present invention. System 20 comprises an imaging device 22, which generates and projects a pattern onto an object 28 and captures an image of the pattern appearing on the object. Details of the design and operation of device 22 are shown in the figures that follow and are described hereinbelow with reference thereto.

In some embodiments, device 22 projects an uncorrelated pattern of spots onto object 28. In the context of the present patent application and in the claims, the term “uncorrelated pattern” refers to a projected pattern of spots (which may be bright or dark), whose positions are uncorrelated in planes transverse to the projection beam axis. The positions are uncorrelated in the sense that the auto-correlation of the pattern as a function of transverse shift is insignificant for any shift larger than the spot size and no greater than the maximum shift that may occur over the range of depths mapped by the system. Random patterns, such as a laser speckle pattern, are uncorrelated in this sense. Synthetic patterns, created by human or computer design, such as pseudo-random and quasi-periodic patterns, may also be uncorrelated to the extent specified by the above definition.

An image processor 24 processes image data generated by device 22 in order to reconstruct a 3D map of object 28. The term “3D map” refers to a set of 3D coordinates representing the surface of the object. The derivation of such a map based on image data is referred to herein as “3D mapping” or equivalently, “3D reconstruction.” Image processor 24 computes the 3D coordinates of points on the surface of object 28 by triangulation, based on the transverse shifts of the spots in an image of the pattern that is projected onto the object relative to a reference pattern at a known distance from device 22. Methods for this sort of triangulation-based 3D mapping using a projected laser speckle pattern are described in the above-mentioned PCT publication WO 2007/043036 and in PCT Patent Application PCT/IL2007/000306, filed Mar. 8, 2007, which is assigned to the assignee of the present patent application, and whose disclosure is incorporated herein by reference. These methods may be implemented, mutatis mutandis, using synthetic uncorrelated patterns in system 20.

Image processor 24 may comprise a general-purpose computer processor, which is programmed in software to carry out the functions described hereinbelow. The software may be downloaded to processor 24 in electronic form, over a network, for example, or it may alternatively be provided on tangible media, such as optical, magnetic, or electronic memory media. Alternatively or additionally, some or all of the functions of the image processor may be implemented in dedicated hardware, such as a custom or semi-custom integrated circuit or a programmable digital signal processor (DSP). Although processor 24 is shown in FIG. 1, by way of example, as a separate unit from imaging device 22, some or all of the processing functions of processor 24 may be performed by suitable dedicated circuitry within the housing of the imaging device or otherwise associated with the imaging device.

The 3D map that is generated by processor 24 may be used for a wide range of different purposes. For example, the map may be sent to an output device, such as a display 26, which shows a pseudo-3D image of the object. In the example shown in FIG. 1, object 28 comprises all or a part (such as a hand) of the body of a subject. In this case, system 20 may be used to provide a gesture-based user interface, in which user movements detected by means of device 22 control an interactive computer application, such as a game, in place of tactile interface elements such as a mouse, joystick or other accessory. Alternatively, system 20 may be used to create 3D maps of objects of other types, for substantially any application in which 3D coordinate profiles are needed.

FIG. 2 is a schematic top view of device 22, in accordance with an embodiment of the present invention. An illumination assembly 30 in device 22 comprises a light source 34 (which may be a point source, such as a laser, without additional optics, as explained below) and a transparency 36, which are used in combination to project a pattern of spots onto object 28. In the context of the present patent application and in the claims, the term “transparency” is used in its ordinary sense to mean a positive image on a transparent support. Slides and foils are examples of such transparencies. In some embodiments of the present invention, the positive image on transparency 36 is an image of the pattern that is to be projected onto object 28. A single, stationary transparency, fixed in the housing of assembly 30, with a fixed, uncorrelated pattern of spots, is sufficient for the purposes of these embodiments. Alternatively, the illumination assembly may be configured to provide variable patterns, by alternating among different fixed transparencies, or using a variable transparency, such as a programmable spatial light modulator.

Transparency 36 may contain various sorts of fixed, uncorrelated patterns of spots. For example, the transparency may contain a pattern of binary (white/black) spots, distributed over the area of the transparency according to the values of a pseudo-random distribution function. Other examples of uncorrelated spot patterns are described hereinbelow with reference to FIGS. 4 and 5. For good performance in the mapping process, it is advantageous that the spot pattern have a low duty cycle, i.e., that the fraction of the area of the pattern with above-average brightness be no greater than 1/e, and desirably less than ¼ or even 1/10. The low duty cycle is beneficial in enhancing the signal/noise ratio of spot shift detection for 3D mapping.

Light source 34 transilluminates transparency 36 with optical radiation so as to project an image of the spot pattern that is contained by the transparency onto object 28. (The terms “light” and “optical radiation” in the context of the present patent application refer to any band of optical radiation, including infrared and ultraviolet, as well as visible light. In some applications, however, near-infrared light is preferred on account of the availability of suitable, low-cost sources and detectors and the fact that the spot pattern is thus invisible to human viewers.) In the configuration shown in FIG. 2, light source 34 is a point source, meaning that the rays of radiation emitted by the light source emanate from a locus small enough so that the spot pattern on transparency 36 is replicated sharply on object 28. For this purpose, light source 34 may comprise, for example, a coherent source with large angular divergence, such as a laser diode. When a point source is used with the transparency in this manner, no other projection optics are required. Alternatively, the illumination assembly may comprise suitable projection optics, as shown in FIG. 3, for example. In either case, the light source is typically mounted in the housing of assembly 30 in a fixed position relative to transparency 36.

An image capture assembly 32 captures an image of the pattern that is projected by illumination assembly 30 onto object 28. Assembly 32 comprises objective optics 40, which focus the image onto an image sensor 42. Typically, sensor 40 comprises a rectilinear array of detector elements 44, such as a CCD or CMOS-based image sensor array. Assembly 32 may also comprise a bandpass filter (not shown in the figures), chosen and positioned so that sensor 42 receives only light in the emission band of light source 34, while filtering out ambient light that might otherwise reduce the contrast of the image of the projected pattern that is captured by the sensor.

In the embodiment shown in FIG. 2, illumination assembly 30 and image capture assembly 32 are held in a fixed spatial relation. This configuration and the processing techniques used by image processor 24 make it possible to perform 3D mapping using the single image capture assembly, without relative movement between the illumination and image capture assemblies and without moving parts. Alternatively, the techniques of illumination and mapping that are described hereinbelow may be used in conjunction with other sorts of image capture assemblies, in various different configurations, such as those described in the Background section above. For example, the image capture assembly may be movable relative to the illumination assembly. Additionally or alternatively, two or more image capture assemblies may be used to capture images of object 28 from different angles.

To simplify the computation of the 3D map and of changes in the map due to motion of object 28 in the configuration of FIG. 2, assemblies 30 and 32 may be mounted so that an axis passing through the centers of the entrance pupil of image capture assembly 32 and the spot formed by light source 34 on transparency 36 is parallel to one of the axes of sensor 40 (taken for convenience to be the X-axis, while the Z-axis corresponds to distance from device 22). The advantages of this arrangement are explained further in the above-mentioned PCT patent application PCT/IL2007/000306.

Specifically, by triangulation in this arrangement, a Z-direction shift of a point on the object, δZ, will engender a concomitant transverse shift δX in the spot pattern observed in the image. Z-coordinates of points on the object, as well as shifts in the Z-coordinates over time, may thus be determined by measuring shifts in the X-coordinates of the spots in the image captured by assembly 32 relative to a reference image taken at a known distance Z. Y-direction shifts may be disregarded. This sort of triangulation approach is appropriate particularly in 3D mapping using uncorrelated patterns of spots, although aspects of the approach may be adapted for use with other types of patterns, as well.

Thus, to generate the 3D map of object 28, image processor 24 (FIG. 1) compares the group of spots in each area of the captured image to the reference image in order to find the most closely-matching group of spots in the reference image. The relative shift between the matching groups of spots in the image gives the Z-direction shift of the area of the captured image relative to the reference image. The shift in the spot pattern may be measured using image correlation or other image matching computation methods that are known in the art. Some exemplary methods are described in the above-mentioned PCT patent application and PCT International Publication WO 2007/043036.

FIG. 3 is a schematic top view of an illumination assembly 50, which may be used in device 22 in place of assembly 30, in accordance with an alternative embodiment of the present invention. In this embodiment, transparency 36 is transilluminated using a non-point light source, such as a light-emitting diode (LED) 52 with suitable optics 54 and 56. The configuration and locations of optics 54 and 56 in FIG. 3 are arbitrary, and any suitable sort of projection optics may be used to project the image of the pattern from transparency 36 onto object 28 using light from LED 52. As in assembly 30 (FIG. 2), the elements of illumination assembly 50 may be fixed within the housing of the assembly. The use of LED 52 in assembly 50 is advantageous in terms of reducing the size, cost and heat dissipation of the assembly, as well as improving the mean time between failures (MTBF) and overall reliability of the assembly. Furthermore, because the LED emits light in a relatively narrow band of wavelengths, the light collected by objective optics 40 (FIG. 2) can be effectively filtered by a suitable bandpass filter in image capture assembly 32, as explained above.

FIG. 4 is a schematic representation of a pattern 60 that may be contained in transparency 36, in accordance with an embodiment of the present invention. Pattern 60 is quasi-periodic with an underlying five-fold symmetry. Quasi-periodic patterns are characterized by distinct peaks in the frequency domain (reciprocal space), but contain no unit cell that repeats over the area of the pattern in the spatial domain (real space). For example, pattern 60 belongs to the family of patterns with n-fold symmetry having local intensity I(r) described by the following equation:

$I = {{\sum\limits_{m = 0}^{n - 1}^{\; {k_{m} \cdot r}}}}^{2}$

wherein

$k_{m:} = {\left( {{\cos \frac{2\; \pi \; m}{fold}},{\sin \frac{2\; \pi \; m}{fold}}} \right).}$

For n=5 or n≧7 (n=5, 7, 8, . . . ), these patterns are uncorrelated in the sense defined above. Alternatively, transparency 36 may contain uncorrelated quasi-periodic patterns of other types.

The use of quasi-periodic patterns in system 20 is advantageous in that the pattern has a known spatial frequency spectrum, with distinct peaks (as opposed to random and pseudo-random patterns, whose spectrum is flat). Processor 24 may use this spectral information in filtering digital images of the pattern that are captured by image capture assembly 32, and may thus reduce the effects of noise and ambient light in the image correlation computation. On the other hand, because the pattern is uncorrelated over the range of depths mapped by the system, the likelihood of erroneous mapping results is reduced, since only a correct match between an area of the image of the object and a corresponding area of the reference image will give a high correlation value.

FIG. 5 is a schematic representation of a pattern 70 that may be contained in transparency 36, in accordance with another embodiment of the present invention. Pattern 70 comprises a pseudo-random distribution of black pixels 72 interspersed with white pixels 74, with a local duty cycle of white pixels that decreases monotonically along the horizontal (X) axis. In other words, in any local region, the distribution of black and white pixels is random. Taken over a larger area, however (for example, a block of 10×10 pixels), the number of white pixels relative to the number of black pixels decreases from left to right across the pattern. Taking the sum of pixel values over such a block to be its gray level, the gray level similarly decreases monotonically across the pattern.

When slide 36 contains pattern 70, the gray level of the pattern projected onto object 28, when observed at low resolution, will likewise vary across the image of the object. Therefore, in an initial processing phase, processor 24 may process the image at low resolution in order to determine the gray level of each area in the image of the object. The processor may then compare this gray level to the distribution of gray levels across the reference image in order to make a rough estimate of the depth (Z-coordinate) of each area of the object. For some applications, this rough estimate may be sufficient.

Alternatively, the processor may use this initial estimate in choosing, for each area of the image of the object, the appropriate area of the reference image in which to search for a matching part of the spot pattern. By matching the spot pattern, the processor computes more accurate depth values. This two-step processing approach can be advantageous in avoiding erroneous mapping results and possibly in reducing the overall computation time. Although FIG. 5 shows a pseudo-random pattern, the variation of spot density across the transparency may similarly be applied to patterns of other sorts.

FIG. 6 is a schematic representation of a pattern 80 that may be contained in transparency 36, in accordance with yet another embodiment of the present invention. Pattern 80 comprises multiple parallel bands 82, repeating periodically, each band comprising a replica of the same pseudo-random distribution of spots. In accordance with the arrangement of axes in FIG. 2, the bands are assumed to extend across the transparency (or across at least a part of the transparency) in the X-direction, which is horizontal in FIG. 6. As noted above, when device 22 is configured in the manner shown in FIG. 2, with the entrance pupil of image capture assembly 32 and the spot formed by light source 34 on transparency 36 aligned parallel to the X-axis, only X-direction shifts of the pattern projected on the object need be measured in order to map the Z-coordinates of the object. Y-direction shifts may be disregarded. Therefore, it is sufficient that the pattern be uncorrelated in the X-direction, while Y-direction correlation is unimportant (for distances greater than the size of the correlation window).

Because bands 82 in pattern 80 repeat periodically in the Y-direction, processor 24 may use the image of a single band 82 as a reference image in determining the X-direction shift of an area in the image of the object, regardless of the Y-coordinates of the area. Therefore the memory required to store the reference image is reduced. The complexity of the computation may be reduced, as well, since the range of the search for a matching area in the reference image is limited. Bands 82 may alternatively comprise other types of patterns that are uncorrelated in the X-direction, such as types of patterns shown above in FIGS. 4 and 5.

Patterns 60, 70 and 80 are shown in FIGS. 4-6 solely by way of example, and transparencies containing other sorts of uncorrelated patterns may similarly be used in system 20 and are considered to be within the scope of the present invention. Furthermore, although the embodiments described above relate to the specific configuration of system 20 and design of device 22 that are described above, certain principles of the present invention may similarly be applied in systems and devices of other types for optical 3D mapping. For example, aspects of the embodiments described above may be applied in systems in that use multiple image capture assemblies, or in which the image capture assembly and the illumination assembly are movable relative to one another.

It will thus be appreciated that the embodiments described above are cited by way of example, and that the present invention is not limited to what has been particularly shown and described hereinabove. Rather, the scope of the present invention includes both combinations and subcombinations of the various features described hereinabove, as well as variations and modifications thereof which would occur to persons skilled in the art upon reading the foregoing description and which are not disclosed in the prior art. 

1. Apparatus for mapping an object, comprising: an illumination assembly, comprising: a single transparency containing a fixed pattern of spots; and a light source, which is configured to transilluminate the single transparency with optical radiation so as to project the pattern onto the object; an image capture assembly, which is configured to capture an image of the pattern that is projected onto the object using the single transparency; and a processor, which is coupled to process the image captured by the image capture assembly so as to reconstruct a three-dimensional (3D) map of the object.
 2. The apparatus according to claim 1, wherein the pattern is uncorrelated over a range of depths that is mapped by the apparatus.
 3. The apparatus according to claim 1, wherein the processor is arranged to derive the 3D map by finding respective offsets between the pattern of the spots on multiple areas of the object captured in the image of the pattern that is projected onto the object and a reference image of the pattern, wherein the respective offsets are indicative of respective distances between the areas and the image capture assembly.
 4. The apparatus according to claim 1, wherein the image capture assembly is arranged to capture images of the pattern on the object from a single, fixed location and angle relative to the illumination assembly.
 5. The apparatus according to claim 4, wherein the transparency and light source are fixed in respective positions in the illumination assembly.
 6. The apparatus according to claim 5, wherein the processor is configured to reconstruct the 3D map using the images that are captured only from the single, fixed location and angle with the transparency and light source only in the respective positions.
 7. The apparatus according to claim 1, wherein the light source comprises a point source of the optical radiation.
 8. The apparatus according to claim 1, wherein the light source comprises a light-emitting diode (LED).
 9. The apparatus according to claim 1, wherein the processor is arranged to process a succession of images captured while the object is moving so as to map a 3D movement of the object.
 10. The apparatus according to claim 9, wherein the object is a part of a human body, and wherein the 3D movement comprises a gesture made by the part of the human body, and wherein the processor is coupled to provide an input to a computer application responsively to the gesture.
 11. Apparatus for mapping an object, comprising: an illumination assembly, comprising: a transparency containing an uncorrelated pattern of spots; and a light source, which is configured to transilluminate the transparency with optical radiation so as to project the uncorrelated pattern onto the object; an image capture assembly, which is configured to capture an image of the uncorrelated pattern that is projected onto the object; and a processor, which is coupled to process the image captured by the image capture assembly so as to reconstruct a three-dimensional (3D) map of the object.
 12. The apparatus according to claim 11, wherein the uncorrelated pattern comprises a pseudo-random pattern.
 13. The apparatus according to claim 11, wherein the uncorrelated pattern comprises a quasi-periodic pattern.
 14. The apparatus according to claim 13, wherein the quasi-periodic pattern has an n-fold symmetry, with n=5 or n≧7.
 15. The apparatus according to claim 11, wherein the uncorrelated pattern has a duty cycle that is less than 1/e.
 16. The apparatus according to claim 11, wherein the spots have a local duty cycle that varies across the pattern.
 17. The apparatus according to claim 11, wherein the transparency contains a plurality of parallel bands, repeating periodically in a first direction, each band containing a replica of the uncorrelated pattern extending across at least a part of the transparency in a second direction, perpendicular to the first direction.
 18. The apparatus according to claim 11, wherein the processor is configured to derive the 3D map by finding respective offsets between the pattern of the spots on multiple areas of the object captured in the image of the pattern that is projected onto the object and a reference image of the pattern, wherein the respective offsets are indicative of respective distances between the areas and the image capture assembly.
 19. The apparatus according to claim 18, wherein the spots have a local duty cycle that varies monotonically along an axis across the pattern, and wherein the processor is configured to determine local gray levels of the multiple areas in the image responsively to the local duty cycle, and to estimate the respective offsets based on the local gray levels.
 20. A method for mapping an object, comprising: transilluminating a single transparency containing a fixed pattern of spots so as to project the pattern onto the object; capturing an image of the pattern that is projected onto the object using the single transparency; and processing the captured image so as to reconstruct a three-dimensional (3D) map of the object.
 21. The method according to claim 20, wherein the pattern is uncorrelated over a range of depths that is mapped by the method.
 22. The method according to claim 20, wherein processing the captured image comprises finding respective offsets between the pattern of the spots on multiple areas of the object captured in the image of the pattern that is projected onto the object and a reference image of the pattern, and determining respective distances to the areas responsively to the respective offsets.
 23. The method according to claim 20, wherein capturing the image comprises capturing images of the pattern on the object from a single, fixed location and angle relative to the single transparency.
 24. The method according to claim 23, wherein transilluminating the transparency comprises projecting optical radiation through the transparency from a light source, wherein the transparency and light source are fixed in respective positions relative to one another.
 25. The method according to claim 24, wherein processing the captured image comprises reconstructing the 3D map without use of further images captured from any location or angle other than the single, fixed location and angle and without movement of the transparency and the light source from the fixed respective positions.
 26. The method according to claim 20, wherein transilluminating the single transparency comprises projecting optical radiation from a point source through the single transparency.
 27. The method according to claim 20, wherein transilluminating the single transparency comprises projecting optical radiation from a light-emitting diode (LED) through the single transparency.
 28. The method according to claim 20, wherein processing the captured image comprises processing a succession of images captured while the object is moving so as to map a 3D movement of the object.
 29. The method according to claim 28, wherein the object is a part of a human body, and wherein the 3D movement comprises a gesture made by the part of the human body, and wherein processing the succession of the images comprises providing an input to a computer application responsively to the gesture.
 30. A method for mapping an object, comprising: an illumination assembly, comprising: transilluminating a transparency containing an uncorrelated pattern of spots so as to project the uncorrelated pattern onto the object; capturing an image of the uncorrelated pattern that is projected onto the object; and processing the captured image so as to reconstruct a three-dimensional (3D) map of the object.
 31. The method according to claim 30, wherein the uncorrelated pattern comprises a pseudo-random pattern.
 32. The method according to claim 30, wherein the uncorrelated pattern comprises a quasi-periodic pattern.
 33. The method according to claim 32, wherein the quasi-periodic pattern has an n-fold symmetry, with n=5 or n≧7.
 34. The method according to claim 30, wherein the uncorrelated pattern has a duty cycle that is less than 1/e.
 35. The method according to claim 30, wherein the spots have a local duty cycle that varies across the pattern.
 36. The method according to claim 30, wherein the transparency contains a plurality of parallel bands, repeating periodically in a first direction, each band containing a replica of the uncorrelated pattern extending across at least a part of the transparency in a second direction, perpendicular to the first direction.
 37. The method according to claim 30, wherein processing the captured image comprises finding respective offsets between the pattern of the spots on multiple areas of the object captured in the image of the pattern that is projected onto the object and a reference image of the pattern, and determining respective distances to the areas responsively to the respective offsets.
 38. The method according to claim 37, wherein the spots have a local duty cycle that varies monotonically along an axis across the pattern, and wherein finding the respective offsets comprises determining local gray levels of the multiple areas in the image responsively to the local duty cycle, and estimating the respective offsets based on the local gray levels. 